/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-13 09:58:35
 */
import { SIGN_STATUS_LIST } from '@/const/type';
export const tableOption = () => {
  return {
    ...window.$crudMixins.tableOptions,
    addBtn: false,
    editBtn: false,
    delBtn: false,
    menuWidth: 80,
    searchLabelWidth: 120,
    column: [
      {
        label: '预约记录编号',
        prop: 'id',
      },
      {
        label: '预约人编号',
        prop: 'userId',
      },
      {
        label: '预约人昵称',
        prop: 'nickName',
        search: true,
      },
      {
        label: '手机号',
        prop: 'phone',
        search: true,
        width: 160,
      },
      {
        label: '备注信息',
        prop: 'content',
        overHidden: true,
      },
      {
        label: '签到状态',
        prop: 'status',
        type: 'select',
        dicData: SIGN_STATUS_LIST,
      },
      {
        label: '看宠日期',
        prop: 'reserveTime',
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        search: true,
        width: 160,
        searchRange: true,
      },
      {
        label: '申请日期',
        prop: 'createTime',
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        search: true,
        width: 160,
        searchRange: true,
      },
    ],
  };
};
